//先启动http-server.js不要关闭,在启动http-post.js

const http = require("http");

http.createServer((req,res)=>{
    console.log(req.method);
    req.pipe(process.stdout);
    res.end("success");
}).listen(8080);

console.log("server is listening 8080");